﻿@{
    Layout = "_Layout";
    ViewBag.Title = "Login";
}
<div class="main">
    <div class="post-wrap archive" style="text-align: center;">
        <form action="~/login" method="post" role="form">
            <h2>Login</h2>
            @if (Model != null && Model.Length > 0)
            {
                <div class="alert alert-warning">
                    <ul>
                        @foreach (var err in Model)
                        {
                            <li>@err</li>
                        }
                    </ul>
                </div>
            }
            <div class="post-box">
                <input type="email" class="form-control" name="Email" placeholder="email">
            </div>
            <div class="post-box">
                <input type="password" class="form-control" name="Password" placeholder="password">
            </div>
            <input type="hidden" name="ReturnUrl" value="@ViewBag.ReturnUrl" />
            <button type="submit" class="btn">Submit</button>
        </form>
    </div>
</div>
